#ifndef __APP_LED_H__
#define __APP_LED_H__

#include <stddef.h>

#define APP_LED_SUPPORT
#define YW_LED_HIGH_VALID

#ifdef YW_LED_HIGH_VALID
#define LED_ON              1
#define LED_OFF             0
#else
#define LED_ON              0
#define LED_OFF             1
#endif

typedef enum
{
        /* plug wait wifi connect */
        LED_WIFI_DIRECT_CFG_WAIT_STATE,

        LED_WIFI_CONNECT_WAIT_STATE,
        /* plug connect wifi and wait connect internet */
        LED_WIFI_INTNET_WAIT_STATE,
        /* plug connect to internet */
        LED_WIFI_INTNET_SUCCESS_STATE,

        LED_MAX_STATE
}LED_STATE;

void LedTimerInit(void);
void LedSetState(LED_STATE eState);
void ledRed(bool_t on);
#endif
